package com.ruoyi.report.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 报表分类对象 report_category
 *
 * @author ruoyi
 * @date 2022-03-03
 */
public class ReportCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 报表分类名称 */
    @Excel(name = "报表分类名称")
    private String categoryName;

    /** 父id */
    @Excel(name = "父id")
    private Integer parentId;

    /** 父级全路径 */
    @Excel(name = "父级全路径")
    private String parentIds;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 子部门 */
    private List<ReportCategory> children = new ArrayList<ReportCategory>();

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }
    public void setParentId(Integer parentId)
    {
        this.parentId = parentId;
    }

    public Integer getParentId()
    {
        return parentId;
    }
    public void setParentIds(String parentIds)
    {
        this.parentIds = parentIds;
    }

    public String getParentIds()
    {
        return parentIds;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public List<ReportCategory> getChildren() {
        return children;
    }

    public void setChildren(List<ReportCategory> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryName", getCategoryName())
                .append("parentId", getParentId())
                .append("parentIds", getParentIds())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
